package com.atguigu.srb.core.mapper;

import com.atguigu.srb.core.pojo.dto.ExcelDictDto;
import com.atguigu.srb.core.pojo.entity.Dict;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 数据字典 Mapper 接口
 * </p>
 *
 * @author lwm
 * @since 2022-02-10
 */
public interface DictMapper extends BaseMapper<Dict> {

    /**
     * 批量添加数据
     * @param dictList
     */
    void insertBatch(@Param("dictList") List<ExcelDictDto> dictList);


    /**
     * 查询所有数据字典封装到集合
     */
    List<ExcelDictDto> selectDtoList();

}
